package org.apache.dolphinscheduler.dao.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 收费规则表
 * </p>
 *
 * @author denggh
 * @since 2023-08-15
 */
@TableName("t_ds_charging_rule")
public class ChargingRule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 最小值
     */
    private BigDecimal minNumber;

    /**
     * 最大值
     */
    private BigDecimal maxNumber;

    /**
     * 折扣比例
     */
    private BigDecimal rebateRatio;

    /**
     * 计费规则类型 0 = 标准 1 = 梯度
     */
    private Integer ruleType;

    private Date createTime;

    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public BigDecimal getMinNumber() {
        return minNumber;
    }

    public void setMinNumber(BigDecimal minNumber) {
        this.minNumber = minNumber;
    }

    public BigDecimal getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(BigDecimal maxNumber) {
        this.maxNumber = maxNumber;
    }

    public BigDecimal getRebateRatio() {
        return rebateRatio;
    }

    public void setRebateRatio(BigDecimal rebateRatio) {
        this.rebateRatio = rebateRatio;
    }

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ChargingRule{" +
                "id=" + id +
                ", ruleName='" + ruleName + '\'' +
                ", minNumber=" + minNumber +
                ", maxNumber=" + maxNumber +
                ", rebateRatio=" + rebateRatio +
                ", ruleType=" + ruleType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
